//
//  mycell.m
//  hw3
//
//  Created by fcbayern on 2020/12/6.
//  Copyright © 2020 fcbayern. All rights reserved.
//

#import "mycell.h"

@implementation mycell


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if(self){
        self.number = [[UILabel alloc]init];
        self.picture = [[UIImageView alloc]init];
        [self.contentView addSubview:self.number];
        [self.contentView addSubview:self.picture];
    }
    return self;
}

-(void)layoutSubviews{
    [super layoutSubviews];
    _picture.frame = CGRectMake(0, 0, 150, 150);
    _number.frame = CGRectMake(160, 30, 80, 30);
}

- (void)awakeFromNib {
    [super awakeFromNib];
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
